package com.hou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hou.mapper.UserMapper;
import com.hou.pojo.Result;
import com.hou.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-09-15-21:47
 */
public interface UserService extends IService<User> {
    // 判断用户名和密码是否匹配
    public Result nameMatchPassword(String name, String password);

    // 查询用户等级
    public String userStatus(Integer id);

    // 增加用户
    public Boolean addUser(User user);

    // 删除用户
    public Boolean deleteUser(Integer id);

    // 修改用户
    public Boolean updateUser(User user);

    // 查询所有用户
    public List selectAllUser();

    // 查询当前用户
    public User getNowUser(Integer id);
}
